﻿using System.Runtime.Serialization;
using System;

namespace NIGeoCoding
{
  [Serializable]
  [DataContract]
  public class Status
  {
    public enum GoogleStatus
    {
      G_GEO_SUCCESS = 200,
      G_GEO_SERVER_ERROR = 500,
      G_GEO_MISSING_QUERY = 601,
      G_GEO_UNKNOWN_ADDRESS = 602,
      G_GEO_UNAVAILABLE_ADDRESS = 603,
      G_GEO_BAD_KEY = 610,
      G_GEO_TOO_MANY_QUERIES = 620
    }
    [DataMember]
    public GoogleStatus code { get; set; }
    [DataMember]
    public string request { get; set; }
  }
}
